<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateRoundStaticProfitSetupsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('round_static_profit_setups', function (Blueprint $table) {
            $table->increments('id');
            // todo 改成 不用区间，用最大值，最小值
            $table->string('min_amount')->comment('最小值');
            $table->string('max_amount')->comment('最大值');
            $table->integer('overflow')->comment('溢出');

            $table->unsignedBigInteger('created_at');
            $table->unsignedBigInteger('updated_at');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('round_static_profit_setups');
    }
}
